from dataclasses import dataclass

from vnsumscope.trader.object import (
    TickData,
    OrderData,
    TradeData,
    OrderRequest
)


@dataclass
class BondTickData(TickData):
 
    last_ytm: float = 0

    bid_ytm_1: float = 0
    bid_ytm_2: float = 0
    bid_ytm_3: float = 0
    bid_ytm_4: float = 0
    bid_ytm_5: float = 0

    ask_ytm_1: float = 0
    ask_ytm_2: float = 0
    ask_ytm_3: float = 0
    ask_ytm_4: float = 0
    ask_ytm_5: float = 0


@dataclass
class BondOrderData(OrderData):
 
    ytm: float = 0


@dataclass
class BondTradeData(TradeData):
 
    ytm: float = 0


@dataclass
class BondOrderRequest(OrderRequest):
 
    ytm: float = 0